<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>{#latex.desc}</title>
	<link rel="stylesheet" href="editor/styles.css" type="text/css" />
	<script src="editor/functions.js" type="text/javascript"></script>
	<script src="editor/menu_items.js" type="text/javascript"></script>

	<script type="text/x-mathjax-config">//Should be sourced to make the one in html.php identical.
		MathJax.Hub.Config({
			tex2jax: {
				inlineMath: [ ['[tex]','[/tex]'] ], //, ['\\(','\\)']  ],
				displayMath: [ ['$$','$$'] ], //, ['\\[','\\]'] ],
				processClass: "userHTML|tex2jax_process",
				processEnvironments: false
			}
		});
	</script>
	<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>	
	
	<script language="javascript" type="text/javascript" src="../../tiny_mce_popup_src.js"></script>
	<script language="javascript" type="text/javascript" src="jscripts/latex.js"></script>
	<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script>
	<link href="css/latex.css" rel="stylesheet" type="text/css" />
	<base target="_self" />
</head>
<body>
<form onsubmit="return false;" action="#" id="latexform">
	<div class="tabs">
		<ul>
			<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#latex.desc}</a></span></li>
		</ul>
	</div>

	<div class="panel_wrapper">
		<div id="general_panel" class="panel current">
			<fieldset>
				<legend>{#latex.formula}</legend>
				<div><a class="tip" href="#">(przykład)
						<div class="tipInside tex2jax_process">
							\lim_{n\to\infty} \sum_{k=0}^n \binom{n}{k}
							\left(\frac1{\beta n}\right)^k<br/>
							= \sqrt[\beta]{\Huge e}\\<br/><br/>
							[tex]\lim_{n\to\infty} \sum_{k=0}^n \binom{n}{k}
								\left(\frac1{\beta n}\right)^k = \sqrt[\beta]{\Huge e}\\[/tex]<br/><br/>
							\forall_{\varepsilon>0} \exists_{n_0\in\mathbb{N}} \\ <br/>
							\Delta\dot{x} \qquad\equiv \left|\begin{matrix}a&amp;b\\c&amp;d\end{matrix}\right|<br/><br/>
							[tex]\forall_{\varepsilon>0}
								\exists_{n_0\in\mathbb{N}} \\ \Delta \dot{x} \qquad \equiv
								\left|\begin{matrix}a&b\\c&d\end{matrix}\right|[/tex]
						</div>
					</a>
				</div>
				<table border="0" cellpadding="4" cellspacing="0">
	                    <tr>
	                        <!--<td><label for="formula">{#latex.formula}</label></td>-->
	                        <td nowrap="nowrap" align="center">
	                            <textarea id="formula" name="formula" cols="100" rows="8" ></textarea>
	                            <input type="hidden" name="lrurl" value="" />
	                        </td>
	                    </tr>
	            </table>
            </fieldset>
            <fieldset id="preview_fieldset">
            	<legend>{#latex.preview1}</legend>
            		<div class="previewImg tex2jax_process" id="preview">[tex][/tex]</div>
            </fieldset>
		</div>
	</div>

	<div class="mceActionPanel">
		<div style="float: left">
			<input type="button" id="insert" name="insert" value="{#insert}" onclick="LatexDialog.insertLatex();" />
		</div>

		<div style="float: right">
			<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
		</div>
	</div>
</form>
<script type="text/javascript"><!--//
								new menu (MENU_ITEMS);
							//--></script>
</body>
</html>
